<?php

/*
 * Created on Jul 5, 2011
 *
 * To change the template for this generated file go to
 * Window - Preferences - PHPeclipse - PHP - Code Templates
 */

require_once ('db/DBManager.php');
require_once ('db/ConfigLoader.php');
DBManager :: getInstance();
$contentLoader = new ConfigLoader();
$title = $contentLoader->getTitle();
$punchLine = $contentLoader->getPunchline();
$links =  $contentLoader->getTopMenu();
$footer = $contentLoader->getFooterText();

?>


<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
<html xmlns="http://www.w3.org/1999/xhtml">
<head>
<meta http-equiv="Content-Type" content="text/html; charset=utf-8" />
<title><?php echo $title; ?></title>
<link href="css/main.css" type="text/css" media="screen" rel="stylesheet">
 <script src="js/main.js"></script>
</head>

<body>

<div class="my_wrapper">

   <div class="my_header">
		<img src="img/logo.gif" alt='the logo'/><div id='punchLine' class = 'punchLine' ><?php echo $punchLine; ?></div>

			<div class='topmenu'>
			<a href='index.php'>home</a>
          <?php

          foreach ($links as & $link)
			{
				echo '&nbsp;&nbsp;'.$link;
			}
          ?>

        </div>

    </div>
